package com.hkbigdata.cryd.java.ai.langchain4j.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hkbigdata.cryd.java.ai.langchain4j.entity.Appointment;

public interface AppointmentService extends IService<Appointment> {
    /**
     * 获取唯一预约记录
     * @param appointment 查询条件
     * @return 预约记录，无记录返回null
     * @throws IllegalStateException 存在多条匹配记录时抛出
     */
    Appointment getOne(Appointment appointment) throws IllegalStateException;
}